package com.hc.res;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author hc
 * @date 2021/12/27 14:52
 */
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderRes {
    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String id;

    /**
     * 订单总金额
     */
    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalMoney;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 支付方式
     */
    @ApiModelProperty(value = "支付方式")
    private Integer payType;


    /**
     * 用户收件地址编号
     */
    @ApiModelProperty(value = "用户收件地址编号")
    private Long receiveAddrId;
    /**
     * 用户收件人
     */
    @ApiModelProperty(value = "用户收件人")
    private String receiver;

    /**
     * 具体购买的商品
     */
    @ApiModelProperty(value = "具体购买的商品")
    private List<SkuItem> skuItemList;

}
